<?php
/* ----------------------------------------------------------
--               JacoCMS by Jaco Ruit                      --
-------------------------------------------------------------
--     JacoCMS is Open Source and is lincenced under       --
--             GNU General Public Licence v3               --
--          http://www.gnu.org/copyleft/gpl.html           --
-------------------------------------------------------------
--       Please don't remove any text from the footers.    --
-------------------------------------------------------------
-- Credits:   * Jaco Ruit          ~     Scripts,MySQL     --     
-----------------------------------------------------------*/

#Installation Script JacoCMS
include 'setupqueries.php';
$setupQuery = new SetupQuery();


if((!isset($_POST['websiteurl'])) && (!isset($_POST['websitename'])))
{
	echo "<p>Error, no variables found.</p>";
}
else
{
$websiteurl = $_POST['websiteurl'];
$websitename = $_POST['websitename'];
$setupQuery->structureQuery($websiteurl, $websitename);
?>
<html>
	<head>
		<title>JacoCMS - Setup Queries</title>
		<link href="style.css" rel="stylesheet" type="text/css" /> 
	</head>
	<body>
	<div id="panel">
		<center><img src="../style/default/logo.png" /></center>
		<h3>JacoCMS Installer ~ Database Queries</h3><br />
		<p>Database is succesful configured</p><br />
		<p>Please go to the <a href="install.php?step=4">next</a> step</p>
	</div>
	</body>
</html>

<?php
}

?>
